/*
 * DBGestor.h
 *
 *  Created on: 30/11/2014
 *      Author: gustavo
 */

#ifndef DBGESTOR_H_
#define DBGESTOR_H_
#include <iostream>
#include <map>
#include <mensajes.h>

class DBGestor {
public:
	virtual ~DBGestor();
	void add(persona_st person);
	void remove(std::string personName);
	persona_st consult(std::string personName);
	void update(persona_st person);
	static DBGestor* getInstance();
private:
	DBGestor();
	std::map<std::string,persona_st>* db;
	static DBGestor* instance;
};

#endif /* DBGESTOR_H_ */
